package wang.yangziqing.app_kotlin.weight

import android.content.Context
import android.util.AttributeSet
import android.view.View
import android.widget.RelativeLayout
import wang.yangziqing.app_kotlin.R

/**
 * Created by Administrator on 2017/11/29.
 */
class HomeItemView :RelativeLayout  {
    constructor(context: Context?) : super(context)
    constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs)
    constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(context, attrs, defStyleAttr)

    //初始化的方法
    init {
    View.inflate(context, R.layout.item_home,this)
    }

}